package com.tengol.demo.design.pattern.structural.facade.subsystem;

import com.tengol.demo.design.pattern.structural.facade.domain.PointGift;

/**
 * 积分校验子系统，验证积分是否可以兑换指定礼物
 *
 * @author dongrui
 * @date 2019/03/05
 */
public class PointQualifyService {
    public boolean isAvailable(PointGift pointGift){
        if(pointGift != null){
            System.out.println("积分校验通过，可以兑换礼物" + pointGift.getName());
            return true;
        }
        return false;
    }
}
